package com.youwu.weather.CityController;

import com.youwu.weather.service.CityClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CityController {

    @Autowired
    private CityClient cityClient;

    @GetMapping("cities")
    public String listCity() {
        // 通过Feign客户端查找城市数据
        return cityClient.listCity();
    }
}
